<?xml version="1.0" encoding="windows-1251"?>

<xsl:stylesheet version="1.0"  
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> 


<xsl:template match="/">



<a id="link_show_all" href="javascript: showLink('');" style="display:none;">show all</a>
<table border = "0" cellspacing="0" id="linksTable">
    <tr>
        <xsl:attribute name="id">header</xsl:attribute>
        <th >From</th>
        <th >To</th>
        <th >Call</th>
        <th >Frequency</th>
        <th >day-count</th>
        <th >hot-day-count</th>
        <th >Size</th>
        <th >Type</th>
    </tr>
    
    <xsl:for-each select="apm/links/link">
    <xsl:sort select="@from"/>
    <xsl:sort select="@to"/>

        <tr>
            <xsl:attribute name="id"><xsl:value-of select="@from"/>:<xsl:value-of select="@to"/></xsl:attribute>

            <td>
		<a>
                    <xsl:attribute name="href">javascript: showLink('<xsl:value-of select="@from"/>');</xsl:attribute>
                    <xsl:value-of select="@from"/>
		</a>
            </td>
            <td>
		<a>
                    <xsl:attribute name="href">javascript: showLink('<xsl:value-of select="@to"/>');</xsl:attribute>
                    <xsl:value-of select="@to"/>
		</a>
            </td>
            <td>
                <xsl:value-of select="@call"/>
            </td>
            <td>
                <xsl:value-of select="@frequency"/>
            </td>
            <td>
                <xsl:value-of select="@day-count"/>
            </td>
            <td>
                <xsl:value-of select="@hot-day-count"/>
            </td>
            <td>
                <xsl:value-of select="@size"/>
            </td>
            <td>
                <xsl:value-of select="@type"/>
            </td>

        </tr>
    </xsl:for-each>



</table>


</xsl:template>


</xsl:stylesheet>